package com.wyh.domain.po.gfour;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 联系人表
 * </p>
 *
 * @author lx
 * @since 2024-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Contacts implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    private String name;

    /**
     * 电话
     */
    private @Pattern(
            regexp = "^1[3-9]\\d{9}$",
            message = "手机号码格式不正确"
    ) String telephone;

    /**
     * 邮件
     */
    private String email;

    /**
     * 楼盘
     */
    private String development;

    /**
     * 客户id
     */
    private String customerid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDate activetime;

    private int role;



}
